home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / tags18.zip / MATCHTST.BAT < prev    next >
DOS Batch File  |  1992-01-06  |  4KB  |  75 lines

  1. @echo off
  2.  
  3. echo .
  4. echo Beginning MATCHTST
  5. echo .
  6. echo Creating file TEST.OUT
  7. echo .
  8.  
  9. REM The following tests should match
  10.  
  11. match test?         testy                           > test.out
  12. match test*         test                            >> test.out
  13. match tes*t         test                            >> test.out
  14. match *test         test                            >> test.out
  15. match t*s*t         test                            >> test.out
  16. match t*s*t         tesseract                       >> test.out
  17. match t?s?          test                            >> test.out
  18. match ?s*t          psyot                           >> test.out
  19. match [a-z]s*t      asset                           >> test.out
  20. match s[!gh]t       set                             >> test.out
  21. match t[a-ce]st     test                            >> test.out
  22. match tea[ea-c]up   teacup                          >> test.out
  23. match [a-fh-z]*     jack                            >> test.out
  24. match \i\**         i*hello                         >> test.out
  25. match [\[-\]]       [                               >> test.out
  26. match [a-z\\]       \                               >> test.out
  27. match [a-z%_]       b                               >> test.out
  28. match [\]]          ]                               >> test.out
  29. match \i?*          itch                            >> test.out
  30. match \i?*          it                              >> test.out
  31. match ?*?*?t        test                            >> test.out
  32. match ?*?*?*?*      test                            >> test.out
  33. match *\]*\**\?*\[  ]this*is?atest[                 >> test.out
  34. match [a-\\]*       at                              >> test.out
  35. match [a-d\\-/]     c                               >> test.out
  36. match *t?l*his      bright-land-high-and-his        >> test.out
  37.  
  38.  
  39. REM The following tests should fail
  40.  
  41. match test          test                            >> test.out
  42. match \             test                            >> test.out
  43. match tes\          test                            >> test.out
  44. match t*s*t         texxeract                       >> test.out
  45. match t?st          tst                             >> test.out
  46. match test?         test                            >> test.out
  47. match s[!e]t        set                             >> test.out
  48. match []            ]                               >> test.out
  49. match [             [                               >> test.out
  50. match [\[-\]        [                               >> test.out
  51. match [a            atest                           >> test.out
  52. match [a-           atest                           >> test.out
  53. match [a-z          atest                           >> test.out
  54. match [a-]*         atest                           >> test.out
  55. match [a-fh-z       jack                            >> test.out
  56. match [a-fh-z\]     jack                            >> test.out
  57. match [a-fh-z]      jack                            >> test.out
  58. match ?*?*?t*?      test                            >> test.out
  59. match *?????        test                            >> test.out
  60. match *\            test                            >> test.out
  61. match [a-e\         atest                           >> test.out
  62. match [a-\          atest                           >> test.out
  63. match [a-bd-\       atest                           >> test.out
  64. match *?*?t?        test                            >> test.out
  65. match t?            t                               >> test.out
  66. match ??*t          step                            >> test.out
  67. match [a-e]*[!t     eel                             >> test.out
  68. match [\            test                            >> test.out
  69. match \t[est        test                            >> test.out
  70. match ?*[]          hello                           >> test.out
  71. match a[!a-ej]      ajax                            >> test.out
  72.  
  73. echo MATCHTST Complete
  74. echo .
  75.